﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sharp.Domain.CMSBoundedContext.AritcleModule.Aggregates
{
    public partial interface IGatherUrlCacheRepository
    {
        /// <summary>
        /// 缓存下一页
        /// </summary>
        /// <param name="pageUrl"></param>
        /// <param name="urls"></param>
        /// <remarks>只有大于等于5页才进行缓存</remarks>
        void CacheNextPages(string pageUrl, string[] urls);

        /// <summary>
        /// 读取缓存的url地址
        /// </summary>
        /// <param name="pageUrl"></param>
        /// <returns></returns>
        string[] ReadNextPages(string pageUrl);
    }
}